﻿using System;
using System.Collections;
using System.Collections.Generic;
using com.guojin.core.io;
using com.guojin.core.io.message;

namespace com.guojin.mj.net.message.game
{
    public class SHBetIndexReq : Message
    {

        public static int TYPE = 12;
        public static int ID = 10;

        private int _locationIndex;

        public static SHBetIndexReq Creat(int locationIndex)
        {
            SHBetIndexReq bi = new SHBetIndexReq();
            bi.LocationIndex = locationIndex;
            return bi;
        }

        public int LocationIndex
        {
            get
            {
                return _locationIndex;
            }

            set
            {
                _locationIndex = value;
            }
        }

        public void decode(Input _in)
        {

        }

        public void encode(Output _out)
        {
            _out.writeInt(_locationIndex);
        }

        public int getMessageId()
        {
            return ID;
        }

        public int getMessageType()
        {
            return TYPE;
        }

        public string toString()
        {
            return "GameRoomInfoReq[UserID=" + _locationIndex + " ]";
        }
    }
}
